
import java.util.concurrent.ExecutionException;
import java.util.concurrent.TimeoutException;

import com.agiledeveloper.pcj.*;

public class AppCh41 {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		System.out.println("processors: " + Runtime.getRuntime().availableProcessors());
		
		
//		TotalFileSizeSequential.main(new String[] { "d:/works"  });
		
		try {
//			NaivelyConcurrentTotalFileSize.main(new String[] { "d:/works"  });
//			ConcurrentTotalFileSize.main(new String[] { "d:/works"  });
			ConcurrentTotalFileSizeWLatch.main(new String[] { "d:/works"  });
		} catch (InterruptedException e) {
			e.printStackTrace();
//		} catch (ExecutionException e) {
//			e.printStackTrace();
//		} catch (TimeoutException e) {
//			e.printStackTrace();
		}
		
		
		
	}
}
